LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE    := cocos_engine_static

LOCAL_MODULE_FILENAME := libengine

LOCAL_SRC_FILES := engine/AppDelegate.cpp \
engine/GameLayer.cpp \
engine/GameObj.cpp \
engine/GameObjManager.cpp \
engine/GameScene.cpp \
engine/WareSprite.cpp \
engine/SceneManager.cpp \
engine/stateMachine/StateMachine.cpp \
common/WareFileRead.cpp \
common/WareFileWrite.cpp \
common/StringUtility.cpp \
common/WareIniFile.cpp \
common/ConfigFileManager.cpp \
common/TinyXml/tinystr.cpp \
common/TinyXml/tinyxml.cpp \
common/TinyXml/tinyxmlerror.cpp \
common/TinyXml/tinyxmlparser.cpp \

LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_curl_static

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
                           $(LOCAL_PATH)/inc \
						   $(LOCAL_PATH)/inc/common \
						   $(LOCAL_PATH)/inc/engine \
						   $(LOCAL_PATH)/inc/render \
						   $(LOCAL_PATH)/inc/tinyxml \
						   $(LOCAL_PATH)/../CocosDenshion/include \
						   
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
                    $(LOCAL_PATH)/inc \
					$(LOCAL_PATH)/inc/common \
					$(LOCAL_PATH)/inc/engine \
					$(LOCAL_PATH)/inc/render \
					$(LOCAL_PATH)/inc/tinyxml \
                    $(LOCAL_PATH)/../CocosDenshion/include \
					
include $(BUILD_STATIC_LIBRARY)

$(call import-module,cocos2dx) \
$(call import-module,CocosDenshion/android) \
$(call import-module,cocos2dx/platform/third_party/android/prebuilt/libcurl)
